//
//  LYMusicCollectionViewCell.m
//  MusicMV
//
//  Created by dllo on 16/3/18.
//  Copyright © 2016年 Eternity. All rights reserved.
//

#import "LYMusicCollectionViewCell.h"

@interface LYMusicCollectionViewCell ()



@end
@implementation LYMusicCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)createView {
    
    self.firstImage = [[UIImageView alloc] init];
    [self.contentView addSubview:_firstImage];
    
    
    
    self.firstLabel = [[UILabel alloc] init];
    [self.contentView addSubview:_firstLabel];
    
    
    
}

// 布局
- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes {
    _firstImage.frame = CGRectMake(10 * wt, 10 * ht, 20 * wt, 20 * ht);
    
    _firstLabel.frame = CGRectMake(layoutAttributes.frame.size.width / 2, 0, layoutAttributes.frame.size.width / 2, 40 * ht);
    _firstLabel.font = [UIFont systemFontOfSize:15];
}
@end
